package com.fzy.auth.entity;

import com.fzy.core.entity.EntityId;
import com.fzy.core.entity.EntityStatus;
import com.fzy.core.entity.TreeOption;


/**
 * @hibernate.mapping default-lazy="false"
 * @hibernate.meta attribute="class-description" value="字典条目"
 * @hibernate.class table="fz_dict_entry"
 */
public class DictEntry implements EntityId, EntityStatus, TreeOption {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4838807802198580845L;
	Long id;
	String name;
	String code;
	String parentCode;
	String typeCode;
	String status;

	/**
     * @hibernate.id generator-class="sequence" column="id" type="long" unsaved-value="null"
     * @hibernate.generator-param  name="sequence" value="s_fz_dict_entry"
     * @hibernate.meta attribute="field-description" value="ID(s_fz_dict_entry)"
     */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
    /**
     * @hibernate.property column="name" type="string" length="255" not-null="true"
     * @hibernate.meta attribute="field-description" value="名称"
     */
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
    /**
     * @hibernate.property column="code" type="string" length="255" not-null="true"
     * @hibernate.meta attribute="field-description" value="代码"
     */
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
    /**
     * @hibernate.property column="parent_code" type="string" length="255" not-null="true"
     * @hibernate.meta attribute="field-description" value="父条目代码(fz_dict_entry.code)"
     */
	public String getParentCode() {
		return parentCode;
	}
	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}
    /**
     * @hibernate.property column="type_code" type="string" length="255" not-null="true"
     * @hibernate.meta attribute="field-description" value="类型代码(fz_dict_type.code)"
     */
	public String getTypeCode() {
		return typeCode;
	}
	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}
    /**
     * @hibernate.property column="status" type="string" length="1" not-null="true"
     * @hibernate.meta attribute="field-description" value="记录状态(0,无效,1,有效)"
     */
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}

}
